import request from "@/utils/request";

export async function applyList(params) {
  return request(`/apply/query`, {
    method: "POST",
    body: params
  });
}

export async function addApply(params) {
  return request(`/apply/add`, {
    method: "POST",
    body: params
  });
}
export async function applyRemove(params) {
  return request(`/apply/del/${params.code}`, {
    method: "POST",
    body: {}
  });
}

export async function applyDetail(params) {
  return request(`/apply/detail/${params.code}`, {
    method: "POST",
    body: {}
  });
}


export async function applyEdit(params) {
  return request(`/apply/edit`, {
    method: "POST",
    body:params
  });
}

export async function applyAudit(params) {
  return request(`/apply/audit`, {
    method: "POST",
    body: params
  });
}

export async function productGenerator(params) {
  return request(`/apply/product/generator`, {
    method: "POST",
    body: params
  });
}
export async function applyRule(params) {
  return request(`/apply/rule`, {
    method: "POST",
    body: params
  });
}
